/*
 *	This file is part of Lounge-Cast.
 *
 *  Author:  	Markus Moormann
 *	E-mail:  	mmoorman@uni-osnabrueck.de
 *	Copyright:	University of Osnabrueck (Zentrum Virtuos)
 * 	Website:	www.uni-osnabrueck.de
 *	Date:		16.02.2011
 *
 *	Lounge-Cast is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *	Lounge-Cast is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Lounge-Cast.  If not, see <http://www.gnu.org/licenses/>.
 */
package backend.vo;

/**
 * class represents an image
 *
 * @author Markus Moormann
 * @see MediaVO
 */
public class ImageVO extends MediaVO {
	
	/**
	 * the URL pointing to the image
	 */
	public String url;
	/**
	 * a person or a firm that hold the rights of the image
	 */
	public String image_source;
	/**
	 * whether the image is in composition with a text or not
	 */
	public boolean in_composition;
	/**
	 * the width of the image
	 */
	public int width;
	/**
	 * the height of the image
	 */
	public int height;
	/**
	 * the aspect ratio of the image (width/height)
	 */
	public double aspect_ratio;
	
	/**
	 * default constructor
	 */
	public ImageVO() {
		super();
	}
	
	/**
	 * constructor
	 * 
	 * @param media a <code>MediaVO</code> containing all common information
	 * @param url the URL pointing to the image
	 * @param image_source a person or a firm holding the rights of the image
	 * @param in_composition whether the image is in composition with a text or not
	 * @param width the width of the image
	 * @param height the height of the image
	 * @param aspect_ratio the aspect ratio of the image (width/height)
	 */
	public ImageVO(MediaVO media, 
				   String url, 
				   String image_source, 
				   boolean in_composition, 
				   int width, 
				   int height, 
				   double aspect_ratio) {
		this.media_id = media.media_id;
		this.added = media.added;
		this.addedBy = media.addedBy;
		this.approved = media.approved;
		this.converted = media.converted;
		this.duration = media.duration;
		this.newsticker = media.newsticker;
		this.playlist_id = media.playlist_id;
		this.position = media.position;
		this.reference = media.reference;
		this.title = media.title;
		this.type = media.type;
		this.start_date = media.start_date;
		this.valid_date = media.valid_date;
		this.feed_item_uri = media.feed_item_uri;
		this.category = media.category;
		
		this.added = media.added;
		this.addedBy = media.addedBy;
		this.approved = media.approved;
		this.converted = media.converted;
		
		this.url = url;
		this.image_source = image_source;
		this.in_composition = in_composition;
		this.width = width;
		this.height = height;
		this.aspect_ratio = aspect_ratio;
	}

}
